import request from '@/utils/request'
import { getToken } from '@/utils/auth'
var token = getToken();
export function getProject () {
  return request({
    url: '/pc/management/receivingAccount/getProject',
    method: 'post',
    data: {
      token: token,
    }
  })
}
export function getList (projectId, bankOfAccount, no, page, pageSize, draw = 1) {
  return request({
    url: '/pc/management/receivingAccount/getlist',
    method: 'post',
    data: {
      token: token,
      bankOfAccount: bankOfAccount,
      no: no,
      page: page,
      pageSize: pageSize,
      projectId: projectId,
      draw: draw
    }
  })
}
export function refresh () {
  return request({
    url: '/pc/management/receivingAccount/refresh',
    method: 'post',
    data: {
      token: token
    }
  })
}
export function editMoney(id,no) {
  return request({
    url: '/pc/management/receivingAccount/editRecvingAccount',
    method: 'post',
    data: {
      token: token,
      id: id,
      no:no
    }
  })
}